package com.yxym.string_;

public class StringExercise02 {
    public static void main(String[] args) {
        StringExercise02 exercise02 =new StringExercise02();
        exercise02.change(exercise02.str,exercise02.ch);
        System.out.println(exercise02.str + "and0");
        System.out.println(exercise02.ch);
    }
    String str = new String("hsp");
    final char[] ch = {'j','a','v','a'};
    public void change(String str,char ch[]){
        str = "java";
        ch[0] = 'h';
    }
}
